  function addFormField() 
  {
    var number = parseInt(document.getElementById("counter").value);
    var j;
    j =  "<div class='ingredient_div' style='text-align:right; height: 25px' id='rem" + number + "'>";
	j += "<table class='ingredient_tab'>";
	j += "<colgroup span='2'><col width='100'/><col width='308'/></colgroup>";
	j += "<tr><td>";
    j += "<a style='color: black' href='#' onClick=\"removeFormField('#rem" + number + "'); return false;\">";
	j += "<b>Remove</b></a>";
	j += "</td><td style='text-align: right'>";
	j += "<input type='text' size='19' name='ingredients[]' id='ing" + number + "'></input>";
	j += "&nbsp;&nbsp;<input type='text' size='19' name='amounts[]' id='amt" + number + "'></input>";
	j += "</td></tr>";
	j += "</table>";
	j += "</div>";   
    
    jQuery("#divTxt").append(j);
    document.getElementById("counter").value = number + 1;
  }

  function removeFormField(id) 
  {
	jQuery(id).remove();
  }
